from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token
from . import views

urlpatterns = [
  url(r'^users/$', views.UserView.as_view()),
  url(r'^users/count/(?P<mobile>1[3-9]\d{9})/(?P<email>[0-9a-zA-Z_]{0,19}@[0-9a-zA-Z]{1,13}\.[com,cn,net]{1,3})$', views.UserCountView.as_view()),
  url(r'^users/authorizations/$', obtain_jwt_token),
  url(r'^user/$', views.UserInfo.as_view()),
  url(r'^userDetail/(?P<pk>\d+)/$', views.UserInfoDetail.as_view())
]
